package com.cqeec.bootdemo.util;

import java.util.Random;

/**
 * 随机生成验证码工具类
 */
public class ValidateCodeUtils {
    public static int generateValidateCode() {
        int code = new Random().nextInt(9999);
        if (code < 1000) {
            code=code+1000;
        }
        return code;
    }
}
